package com.hksj.cbm.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hksj.common.core.model.BasePageQuery;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author fjt
 * @data 2024/7/15 16:43
 * @describe 设备报警分页查询入参
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AlarmPageDTO extends BasePageQuery implements Serializable {

    private static final long serialVersionUID = 220895233470486071L;

    @ApiModelProperty("报警类型(1=设备报警记录 2=机组故障记录)")
    @NotNull(message = "报警类型不能为空")
    private Integer alarmType;

    @ApiModelProperty("监测属性")
    private String property;

    @ApiModelProperty("设备名称")
    private String deviceName;

    @ApiModelProperty("设备位置路径(当按楼层查时)")
    private String paths;

    @ApiModelProperty("科室字典明细值(当按病区/科室查时)")
    private String departmentItemValue;

    @ApiModelProperty(value = "专业名称code", hidden = true)
    private String code;

    @ApiModelProperty("查询起始时间 yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty("查询截止时间 yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;


}















